Optimal. Leaf size=47 \[ -\frac {\tanh ^{-1}\left (\frac {2 a+b x^n}{2 \sqrt {a} \sqrt {a+b x^n+c x^{2 n}}}\right )}{\sqrt {a} n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {1371, 738, 212}
\begin {gather*} -\frac {\tanh ^{-1}\left (\frac {2 a+b x^n}{2 \sqrt {a} \sqrt {a+b x^n+c x^{2 n}}}\right )}{\sqrt {a} n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 738
Rule 1371
Rubi steps
\begin {align*} \int \frac {1}{x \sqrt {a+b x^n+c x^{2 n}}} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx,x,x^n\right )}{n}\\ &=-\frac {2 \text {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+b x^n}{\sqrt {a+b x^n+c x^{2 n}}}\right )}{n}\\ &=-\frac {\tanh ^{-1}\left (\frac {2 a+b x^n}{2 \sqrt {a} \sqrt {a+b x^n+c x^{2 n}}}\right )}{\sqrt {a} n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 46, normalized size = 0.98 \begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {\sqrt {c} x^n-\sqrt {a+x^n \left (b+c x^n\right )}}{\sqrt {a}}\right )}{\sqrt {a} n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {1}{x \sqrt {a +b \,x^{n}+c \,x^{2 n}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 148, normalized size = 3.15 \begin {gather*} \left [\frac {\log \left (-\frac {8 \, a b x^{n} + 8 \, a^{2} + {\left (b^{2} + 4 \, a c\right )} x^{2 \, n} - 4 \, {\left (\sqrt {a} b x^{n} + 2 \, a^{\frac {3}{2}}\right )} \sqrt {c x^{2 \, n} + b x^{n} + a}}{x^{2 \, n}}\right )}{2 \, \sqrt {a} n}, \frac {\sqrt {-a} \arctan \left (\frac {{\left (\sqrt {-a} b x^{n} + 2 \, \sqrt {-a} a\right )} \sqrt {c x^{2 \, n} + b x^{n} + a}}{2 \, {\left (a c x^{2 \, n} + a b x^{n} + a^{2}\right )}}\right )}{a n}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x \sqrt {a + b x^{n} + c x^{2 n}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {1}{x\,\sqrt {a+b\,x^n+c\,x^{2\,n}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________